package ooday01;

public class Student {
    //成员变量
    String name;
    int age;
    String className;
    String stuid;
    //构造方法
    Student(){}
    Student(String name,int age, String calssName){
        this.name=name;
        this.age=age;
        this.className=calssName;
    }
    Student(String name,int age){
        this.name=name;
        this.age=age;
    }

    Student(String name){
        this.name=name;
    }

    Student(String name,int age, String calssName,String stuid){
        this.name=name;
        this.age=age;
        this.className=calssName;
        this.stuid=stuid;
    }

    void study(){
        System.out.println(this.name+"在学习");
    }
    void  sayHi(){
        System.out.println("大家好我叫:"+this.name+"\t"+"今年:"+this.age+"\t"+"所在班级为:"+this.className+"\t"+"学号为"+this.stuid);
    }
    void playWith(String anoherName){
        System.out.println(this.name+"正在跟"+anoherName+"一起玩");
    }
}
